package com.lyy.rev1ew.controller;

import com.lyy.rev1ew.model.User;
import com.lyy.rev1ew.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller
public class UserController {

    @Resource(name = "user2")
    private User user;

    public void sayHi(){
        System.out.println("hi,UserController...");
        //userService.sayHi();
    }
}


